package cn.iocoder.yudao.module.els.controller.admin.codeGeneratorDetail.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 编码生成器明细新增/修改 Request VO")
@Data
public class CodeGeneratorDetailSaveReqVO {

    @Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "25736")
    private Long id;

    @Schema(description = "id", example = "18985")
    private Long generatorId;

    @Schema(description = "顺序", requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer seq;

    @Schema(description = "取值类型：固定值、变量值、表达式、枚举值、流水号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotEmpty(message = "取值类型：固定值、变量值、表达式、枚举值、流水号不能为空")
    private String valueType;

    @Schema(description = "变量名", example = "张三")
    private String variableName;

    @Schema(description = "值内容与取值类型一一")
    private String value;

    @Schema(description = "值长度")
    private Integer valueLength;

    @Schema(description = "是否流水号key值")
    private Integer isSerialKey;

}